You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TVec Class > TVec Methods > DCT Method > TVec.DCT Method ([In] TVec)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TVec.DCT Method ([In] TVec)

Calculates the forward discrete cosine transform (DCT) of the Vec.

Syntax
C#
Visual Basic
public TVec DCT([In] TVec Vec);

Writes the result in the calling vector. If Vec.Length is a power of 2, the function uses an efficient algorithm that is significantly faster than the direct computation of DCT. For other values of Vec Length, this function uses the direct formulas.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!